<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.enterprise.domain.Employee,com.enterprise.domain.*"%>
<%@page import="com.enterprise.daoImpl.EmployeeDaoImpl"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="Inc/Head.jsp" %>
<script language=javascript>
function ConfirmDel()
{
   if(confirm("确定要删除此记录吗？"))
     return true;
   else
     return false;
}
</script>
<table  border="0" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td align="center" valign="top"> <br> <br> <table  border="0" cellpadding="0" cellspacing="0" >
        <tr> 
          <td class="back_southidc" height="28"> 
            <div align="center"><strong>应聘管理 <br>
              </strong></div></td>
        </tr>
        <tr> 
          <td><div align="center"> 

               <%
        
                               	  int currentPage=1;
				if(request.getParameter("pageNo")!=null){
					currentPage=Integer.parseInt(request.getParameter("pageNo"));
				}   		
				
                               
        
        
        	EmployeeDaoImpl employeeDaoImpl=new EmployeeDaoImpl();
        	List<Employee> employees=employeeDaoImpl.getAll();
  
        	
        	Page page2=new Page(2,employees.size(),currentPage);
				currentPage=page2.getCurrentPage();
				
                               	
                               	int t;
                               
                             
        	
        	if(employees!=null&&employees.size()>0)
        		  for(t=page2.getFromIndex();t<page2.getToIndex();t++){
                              Employee employee=employees.get(t);
        
         %>
              
              <table class="table_southidc"  border="0" cellspacing="2" cellpadding="3">
                <tr> 
                  <td width="37%" height="25" bgcolor="#A4B6D7"> <div align="center">应聘岗位</div></td>
                  <td colspan="2" bgcolor="#A4B6D7">&nbsp;&nbsp;<b><%=employee.getJob() %></b> &nbsp; </td>
                  <td bgcolor="#A4B6D7"><a href="employee-delete.action?id=<%=employee.getId() %>" onClick="return ConfirmDel();">删除</a>&nbsp;&nbsp;&nbsp;<a href="#">发信</a> 
                  </td>
                </tr>
                
                <tr> 
                  <td height="10" bgcolor="#ECF5FF"> <div align="center">姓 名</div></td>
                  <td width="34%" bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getMyname() %></td>
                  <td width="13%" bgcolor="#ECF5FF"> <div align="center">性 别</div></td>
                  <td width="36%" bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getSex() %></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"> <div align="center">出生日期</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=new SimpleDateFormat("yyyy-MM-dd").format(employee.getBorn()) %></td>
                  <td bgcolor="#ECF5FF"> <div align="center">婚姻状况</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getMarryStatus() %></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"><div align="center">身高</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getHeight() %></td>
                  <td bgcolor="#ECF5FF"><div align="center">户藉地</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getLocaltion() %></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"> <div align="center">毕业院校</div></td>
                  <td colspan="3" bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getSchool() %></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"> <div align="center">学 历</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<div style="width: 500px;overflow: hidden;word-break: break-all;"><%=employee.getEducation() %></div></td>
                  <td bgcolor="#ECF5FF"> <div align="center">专 业</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<div style="width: 500px;overflow: hidden;word-break: break-all;"><%=employee.getProfession() %></div></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"> <div align="center">毕业时间</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=new SimpleDateFormat("yyyy-MM-dd").format(employee.getGraduateTime()) %></td>
                  <td bgcolor="#ECF5FF"> <div align="center"><font color="#FF0000">应聘日期</font></div></td>
                  <td bgcolor="#ECF5FF"><font color="#FF0000">&nbsp;&nbsp;<%=new SimpleDateFormat("yyyy-MM-dd").format(employee.getEmployTime()) %></font></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"> <div align="center">电 话</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getTelephone() %></td>
                  <td bgcolor="#ECF5FF"><div align="center">手机</div></td>
                  <td bgcolor="#ECF5FF"><font color="#FF0000">&nbsp;&nbsp;<%=employee.getMobile() %></font></td>
                </tr>
                <tr> 
                  <td height="24" bgcolor="#ECF5FF"> <div align="center">联系地址</div></td>
                  <td colspan="3" bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getAddress() %></td>
                </tr>
                <tr> 
                  <td height="22" bgcolor="#ECF5FF"><div align="center">邮编</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<%=employee.getPostcode() %></td>
                  <td bgcolor="#ECF5FF"><div align="center">E-mail</div></td>
                  <td bgcolor="#ECF5FF">&nbsp;&nbsp;<a href="#"><%=employee.getEmail() %></a></td>
                </tr>
                
                <tr> 
                  <td height="25" bgcolor="#ECF5FF"> <div align="center">教育经历</div></td>
                  <td height="25" colspan="3" bgcolor="#ECF5FF">&nbsp;&nbsp;<div style="width: 80%; padding:15px 15px; overflow: hidden;word-break: break-all;"><%=employee.getEducationExperience() %></div></td>
                </tr>
                <tr> 
                  <td height="25" bgcolor="#ECF5FF"> <div align="center">个人简历</div></td>
                  <td height="25" colspan="3" bgcolor="#ECF5FF">&nbsp;&nbsp;<div style="width: 80%;overflow: hidden;padding:15px 15px; word-break: break-all;"><%=employee.getWorkExperience() %></div></td>
                </tr>
              </table>		
              
              <%} %>
                
			  
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
              
           
			  
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
              </table>
              
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="30" bgcolor="#A4B6D7"> 
                    <div align="right"> 
                    
                            	<form name="showpages" method="Post" action="FeedbackView.jsp">
      		<table align="center" width="80%"  border="0" cellpadding="0" cellspacing="0">
      		<tbody>
    
      			<tr><td align="center">共 <b><%=employees.size() %></b> 条记录&nbsp;&nbsp;<a href="Admin_HrManage.jsp?pageNo=1">首页</a><a href="Admin_HrManage.jsp?pageNo=<%=currentPage-1%>"> 上一页</a>&nbsp;<a href="Admin_HrManage.jsp?pageNo=<%=currentPage+1%>">下一页<a href="Admin_HrManage.jsp?pageNo=<%=page2.getPageCount()%>">&nbsp;尾页</a> &nbsp;页次：<strong><font color="red"><%=currentPage %></font>/<%=page2.getPageCount() %></strong>页 &nbsp;<b>2</b>条记录/页&nbsp;转到：
      			<select name="pageNo" size="1" onchange="javascript:submit()">
      			<%
      				int j;
      				for(j=1;j<=page2.getPageCount();j++){ %>
      				<option value="<%=j%>" <%if(j==currentPage){%> <%{%>selected='selected'<%}}%>>第<%=j%>页</option>
      				<%}%>
      			</select></td></tr></tbody></table>
      	</form>
                    
                    
                    </div></td>
                </tr>
              </table>
			  
            </div></td>
        </tr>
      </table>
      <br> <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td><div align="center">

            </div></td>
        </tr>
      </table>
      <br> <br> </td>
  </tr>
</table>


<%@ include file="Inc/Foot.jsp" %>
